package com.aoxin.service.inter.activity;

import java.util.List;

import com.aoxin.model.activity.SlfRecommendMoney;
import com.aoxin.model.activity.SlfRecommendMoneySale;

/**
 * 推荐金额service
 * 
 * @author lop
 * @date 2018年4月28日 上午12:16:20
 */
public interface RecommendMoneyService {
	/**
	 * 查询上下线关系，及详细信息查询
	 * 
	 * @param slfRecommendMoney
	 * @return 
	 */
	public List<SlfRecommendMoney> getRecommendMoney(SlfRecommendMoney slfRecommendMoney);

	/**
	 * 添加推荐人与被推荐人关系数据
	 * 
	 * @param slfRecommendMoney
	 */
	public void insertRecommendMoney(SlfRecommendMoney slfRecommendMoney);

	/**
	 * 添加销售人员推荐人与被推荐人关系数据
	 * @param slfRecommendMoneySale
	 * @return
	 */
	public void insertRecommendMoneySale(SlfRecommendMoneySale slfRecommendMoneySale);
	/**
	 * 查询销售推荐人与被推荐人关系数据
	 * @return
	 */
	List<SlfRecommendMoneySale> queryRecommendMoneySale(SlfRecommendMoneySale slfRecommendMoneySale);

	/**
	 * 更新推荐金额
	 * 
	 * @param slfRecommendMoney
	 */
	public SlfRecommendMoney updateRecommendMoney(SlfRecommendMoney slfRecommendMoney,Integer type);

	/**
	 * 批量修改提现标志
	 * 
	 * @param cashId
	 * @return
	 */
	public Integer updateIsWithdraw(Integer cashId,Integer userId, Integer isWithdraw, Integer cashType);

	/**
	 * 查询有效推广人数及累计收益
	 * @return
	 */
	public List<Integer> effectiveNumber();

}
